<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form"%>
<%@ taglib prefix="spring" uri="http://www.springframework.org/tags"%>
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>

<form:form commandName="object">
	<c:if test="${showTitle}">
		<h1>
			<spring:message code="user.single" />
			<c:if test="${not empty user.name}"> - ${user.lastname, user.firstname}</c:if>
		</h1>
	</c:if>

	<form:hidden path="guid" />
	<table>
		<tr>
			<td><spring:message code="name.single" /></td>
			<td colspan="2"><form:input path="name" /></td>
		</tr>
		<tr>
			<td><spring:message code="firstname.single" /></td>
			<td><form:input path="firstname" /></td>
			<td><spring:message code="lastname.single" /></td>
			<td><form:input path="lastname" /></td>
		</tr>
		<tr>
			<td><spring:message code="email.single" /></td>
			<td colspan="2"><form:input path="email" /></td>
		</tr>
		<tr>
			<td colspan="4">
				<div class="accordion">
					<h3>
						<a href="#"><spring:message code="group.plural" /></a>
					</h3>
					<div></div>
					<h3>
						<a href="#"><spring:message code="job.plural" /></a>
					</h3>
					<div></div>
					<h3>
						<a href="#"><spring:message code="permission.plural" /></a>
					</h3>
					<div></div>
				</div>
			</td>
		</tr>
	</table>
</form:form>